package net.sx.minemodule.mvp.item;

import android.view.View;

import com.alibaba.android.arouter.launcher.ARouter;
import com.homegoods.aroutercomment.ARouterPath;
import com.homegoods.classify.model.Constant;
import com.kedll.library.mvp.BaseItem;

import net.sx.minemodule.R;
import net.sx.minemodule.mvp.bean.GoodsBean;
import net.sx.minemodule.mvp.bean.OrderBean;

import java.util.List;

/**
 * @author 11470
 */
public class OrderItem extends BaseItem<OrderBean> {

    public OrderItem(OrderBean data) {
        super(data);
    }

    @Override
    public int getLayout() {
        return R.layout.mine_view_order;
    }

    public String getStoreImgPath() {
        return Constant.SERVER_URL + getData().getStoreImgPath();
    }

    public String getStoreName() {
        return getData().getStoreName();
    }

    public String getOrderType() {
        return getData().getOrderType();
    }

    public List<GoodsBean> getGoodsBeanList() {
        return getData().getGoodsBeanList();
    }

    public int getGoodsCount() {
        return getData().getGoodsCount();
    }

    public String getGoodsAllMoney() {
        return getData().getGoodsAllMoney();
    }

    public void orderClick(View view) {
        ARouter.getInstance().build(ARouterPath.PATH_MINE_ORDER_DETAIL).navigation();
    }

}
